how to solve equations with inequalities